<template>
  <page-list
    :x-uri="uri"
    :custom-components="custom"
    row-key="__key"
    :x-tabs="tabs"
    :doactions="doactions"
    :checkbox-item="false"
    :pagination="false"
  />
</template>
<script>
import PageList from '@public/template/page_list.vue'
import Status from './components/status'
export default {
  components: {
    PageList
  },
  data() {
    return {
      uri: '/admin/system/package/login/list',
      tabs: [
        {
          title: '第三方登录组件',
          uri: '/system/package/login',
          meta: {
            permission: 'system.package.login'
          }
        }
      ],
      custom: {
        status: Status
      },
      doactions: [{ title: '配置', meta: { permission: 'system.package.login' }, callback: this.config }]
    }
  },
  methods: {
    config: function({ row }) {
      this.$router.push({ path: '/system/package/login/' + row.key + '/config' })
    }
  }
}
</script>
